<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>    
    <title> 流程列表  </title>   

  </head>
  
  <body>
  	 <c:if test="${empty myTaskList}">
  	 	没有流程
  	 </c:if>
  	  <c:if test="${!empty myTaskList}">  	 	
	  	 <table width="90%" cellspacing="1" bgcolor="#6495ED">
	  	 <tr bgcolor="#2F4F4F">
	  	 		<th colspan="2"><font color="white">流程定义列表</font></th>
	  	 	</tr>
	  	 	<tr bgcolor="#2F4F4F">
	  	 		<th><font color="white">流程名称</font></th>
	  	 		<th><font color="white">启动流程</font></th>
	  	 		<th><font color="white">操作</font></th>
	  	 	</tr>
	  	 	
	  	 	<c:forEach items="${myTaskList}" var="pd" varStatus="s">
	  	 		<tr bgcolor="white">
	  	 			<td>${pd.name }</td>
	  	 			<td><a href="${pageContext.request.contextPath}/addbaoxiao.jsp?pdname=${pd.name }">启动流程</a></td>
	  	 			<td><a href="${pageContext.request.contextPath}/loginAction!allversion.action?pdname=${pd.name }">查看所有版本</a></td>
	  	 		</tr>
	  	 		
	  	 	</c:forEach>
	  	 </table>  	 
  	 </c:if>
  </body>
</html>
